<?PHP

/**
 * General Public License as published by the Free Software Foundation
 * (see <http://www.gnu.org/licenses/ for more information).
 * @author Chris Reekie
 * @version 2/28/2011
 *
 * CIS 605
 * Sets donor class 
 */
class Donor {

    private $donorID;   // id (unique key) = AutoIncrement
    private $street;   // street - string
    private $city;    // city - string
    private $state;   // state - string
    private $zip;    // zip code - integer
    private $phone;   // main phone
    private $fax;       // fax
    private $email;   // email address as a string

    /**
     * constructor for donor
     */

    function __construct($d, $a, $c, $s, $z, $p1, $p2, $e) {
        $this->donorID = $d;
        $this->street = $a;
        $this->city = $c;
        $this->state = $s;
        $this->zip = $z;
        $this->phone = $p1;
        $this->fax = $p2;
        $this->email = $e;
    }

    /**
     * sets donorID
     */
    function setdonorID($donorID) {
        $this->donorID = $donorID;
    }

    /**
     * sets address
     */
    function setstreet($street) {
        $this->street = $street;
    }

    /**
     * 	sets city
     */
    function setcity($city) {
        $this->city = $city;
    }

    /**
     * 	   sets state
     */
    function setstate($state) {
        $this->state = $state;
    }

    /**
     * 	   sets zip
     */
    function setzip($zip) {
        $this->zip = $zip;
    }

    /**
     * 	   sets phone
     */
    function setphone($phone) {
        $this->phone = $phone;
    }

    /**
     * 	sets fax
     */
    function setfax($fax) {
        $this->fax = $fax;
    }

    /**
     * 	   sets email
     */
    function setemail($email) {
        $this->email = $email;
    }

    /**
     * 	   sets Individuals
     */
    function getAllIndividuals() {
        $this->allIndividuals = $allIndividuals;
    }

    /**
     * 	   sets Organizations
     */
    function getAllOrganizations() {
        $this->allOrganizations = $allOrganizations;
    }

    /**
     * 	   returns the donorID
     */
    function get_donorID() {
        return $this->donorID;
    }

    /**
     * 	returns the street
     */
    function get_street() {
        return $this->street;
    }

    /**
     * returns the city
     */
    function get_city() {
        return $this->city;
    }

    /**
     * 	returns the state
     */
    function get_state() {
        return $this->state;
    }

    /**
     * 	returns the zip
     */
    function get_zip() {
        return $this->zip;
    }

    /**
     * 	returns the phone
     */
    function get_phone() {
        return $this->phone;
    }

    /**
     * 	returns the fax
     */
    function get_fax() {
        return $this->fax;
    }

    /**
     * 	returns the email
     */
    function get_email() {
        return $this->email;
    }

}
